package com.yzlshdg.util;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Component;


import java.util.List;
import java.util.Map;




@Component
public class Query  {


    @Autowired
    private JdbcTemplate jdbcTemplate;



    public List<Map<String, Object>> select(){

        List<Map<String, Object>> list= jdbcTemplate.queryForList("select * from 先天八卦");
        System.out.println(list);
        return list;
    }

}
